﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MainTemplate.Master" AutoEventWireup="true" CodeBehind="ProofReaderList.aspx.cs" Inherits="AlexandriaPressWebsite.MasterPages.WebForm14" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainDoc" runat="server">

 <asp:GridView ID="gridProofReaderList" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" AllowPaging="True" CssClass="grid" 
        OnPageIndexChanging = "gridProofReaderList_OnPageIndexChanging">
                <Columns>
                                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbSelect" runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Profile Picture">
                        <ItemTemplate>
                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ProfilePicture") %>' AlternateText="Profile Picture" CssClass="smallImage3" />
                        
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="User ID" visible="false" >
                        <ItemTemplate>
                        <asp:Label id="lblID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ID") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Applicant's Name">
                        <ItemTemplate>
                            <asp:Label id="lblFName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'></asp:Label>
                        </ItemTemplate>
                     </asp:TemplateField>
                    <asp:TemplateField HeaderText="Application Date">
                        <ItemTemplate>
                        <asp:Label id="lblDate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DateJoined") %>'></asp:Label>
                        </ItemTemplate>
                     </asp:TemplateField>

                </Columns>
                <PagerStyle CssClass="pager" />
            </asp:GridView>





            <asp:Label ID="lblCheck" runat="server" ForeColor="Red" 
        CssClass="label"></asp:Label>





            <asp:Button ID="Button2" runat="server" 
        Text="Create New Proofreader Login" onclick="Button2_Click" 
        CssClass="genericButton" />





            <asp:Button ID="btnRemove" runat="server" onclick="btnRemove_Click" 
                Text="Remove from List" CssClass="genericButton" />





            <table style="width:100%" id="tableShow" runat="server">
                <tr>
                    <td>
                        First Name:</td>
                    <td colspan="3">
                        <asp:TextBox ID="TextBox1" runat="server" CssClass="textRegion1"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="TextBox1" ErrorMessage="*" ValidationGroup="Login">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="TextBox1" ErrorMessage="Invalid First Name" 
                            ValidationExpression="\w+\s?\w+" ValidationGroup="Login"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td >
                        Last Name:</td>
                    <td colspan="3">
                        <asp:TextBox ID="TextBox2" runat="server" CssClass="textRegion1"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="TextBox2" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="Login">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                            ControlToValidate="TextBox2" ErrorMessage="Invalid Last Name" 
                            ValidationExpression="\w+\s?\w+" 
                            ValidationGroup="Login"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td >
                        Gender</td>
                    <td colspan="3">
                        <asp:DropDownList ID="DropDownList1" runat="server" CssClass="secondaryList">
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem>Female</asp:ListItem>
                            <asp:ListItem>Male</asp:ListItem>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="DropDownList1" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="Login">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td >
                        Birthday:</td>
                    <td >
                        <asp:DropDownList ID="DropDownList2" runat="server" CssClass="secondaryList">
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem Value="01">January</asp:ListItem>
                            <asp:ListItem Value="02">February</asp:ListItem>
                            <asp:ListItem Value="03">March</asp:ListItem>
                            <asp:ListItem Value="04">April</asp:ListItem>
                            <asp:ListItem Value="05">May</asp:ListItem>
                            <asp:ListItem Value="06">June</asp:ListItem>
                            <asp:ListItem Value="07">July</asp:ListItem>
                            <asp:ListItem Value="08">August</asp:ListItem>
                            <asp:ListItem Value="09">September</asp:ListItem>
                            <asp:ListItem Value="10">October</asp:ListItem>
                            <asp:ListItem Value="11">November</asp:ListItem>
                            <asp:ListItem Value="12">December</asp:ListItem>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="DropDownList2" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="Login">*</asp:RequiredFieldValidator>
                    </td>
                    <td >
                        <asp:DropDownList ID="DropDownList3" runat="server" CssClass="secondaryList">
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                            <asp:ListItem>9</asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                            <asp:ListItem>11</asp:ListItem>
                            <asp:ListItem>12</asp:ListItem>
                            <asp:ListItem>13</asp:ListItem>
                            <asp:ListItem>14</asp:ListItem>
                            <asp:ListItem>15</asp:ListItem>
                            <asp:ListItem>16</asp:ListItem>
                            <asp:ListItem>17</asp:ListItem>
                            <asp:ListItem>18</asp:ListItem>
                            <asp:ListItem>19</asp:ListItem>
                            <asp:ListItem>20</asp:ListItem>
                            <asp:ListItem>21</asp:ListItem>
                            <asp:ListItem>22</asp:ListItem>
                            <asp:ListItem>23</asp:ListItem>
                            <asp:ListItem>24</asp:ListItem>
                            <asp:ListItem>25</asp:ListItem>
                            <asp:ListItem>26</asp:ListItem>
                            <asp:ListItem>27</asp:ListItem>
                            <asp:ListItem>28</asp:ListItem>
                            <asp:ListItem>29</asp:ListItem>
                            <asp:ListItem>30</asp:ListItem>
                            <asp:ListItem>31</asp:ListItem>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ControlToValidate="DropDownList3" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="Login">*</asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox5" runat="server" CssClass="textRegion1" 
                            ValidationGroup="Login"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ControlToValidate="TextBox5" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="Login">*</asp:RequiredFieldValidator>
                        <asp:RangeValidator ID="RangeValidator1" runat="server" 
                            ControlToValidate="TextBox5" ErrorMessage="Invalid Year" 
                            MinimumValue="1900" MaximumValue="2012" ValidationGroup="Login"></asp:RangeValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                            ControlToValidate="TextBox5" ErrorMessage="Invalid Year" 
                            ValidationExpression="[\d]{4}"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Email:</td>
                    <td colspan="3">
                        <asp:TextBox ID="TextBox3" runat="server" CssClass="textRegion1" 
                            ontextchanged="TextBox3_TextChanged"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                            ControlToValidate="TextBox3" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="Login">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                            ControlToValidate="TextBox3" ErrorMessage="Invalid Email" 
                            ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$" 
                            ValidationGroup="Login"></asp:RegularExpressionValidator>





            <asp:Label ID="lblLoginCheck" runat="server" ForeColor="Red"></asp:Label>





                    </td>
                </tr>
                <tr>
                    <td >
                        Confirm Email:</td>
                    <td colspan="3">
                        <asp:TextBox ID="TextBox4" runat="server" CssClass="textRegion1"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                            ControlToValidate="TextBox4" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="Login">*</asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ControlToCompare="TextBox3" ControlToValidate="TextBox4" 
                            ErrorMessage="Email address doesn't match the first email" 
                            ValidationGroup="Login"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td colspan="3">
                        <asp:Button ID="btnGenerate" runat="server" onclick="btnGenerate_Click" 
                            Text="Generate Login" ValidationGroup="Login" CssClass="genericButton" />
                    </td>
                </tr>
                </table>
            <br />
            <asp:GridView ID="gridAccountInfo" runat="server" 
        AutoGenerateColumns="False" DataKeyNames="Email" CssClass="grid">
                        
                            <Columns>
                
                                <asp:TemplateField HeaderText="Name">
                                <ItemTemplate>
                                <asp:Label id="lblName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="Gender">
                                <ItemTemplate>
                                <asp:Label id="lblGender" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Gender") %>'></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="Birthday">
                                <ItemTemplate>
                                <asp:Label id="lblBirthday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Birthday") %>'></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="Email">
                                <ItemTemplate>
                                <asp:Label id="lblEmail" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Email") %>'></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="Login">
                                <ItemTemplate>
                                <asp:Label id="lblLogin" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Email") %>'></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="Password">
                                <ItemTemplate>
                                <asp:Label id="lblPassword" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Password") %>'></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>
                                
                    

                                
                       
                            </Columns>
           

                        </asp:GridView>



</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="formDoc" runat="server">
</asp:Content>
